const getUrlParams = (key: string) => {
  let res = typeof window !== "undefined" && new URL(window.location.href).searchParams.get(key)
  return res || ""
}

export {
  getUrlParams
}
